#!/bin/sh

cd "$(dirname "$0")"

rm -rf /tmp/chibi-scheme-0.5.3
tar -C /tmp -xzf chibi-scheme-0.5.3.tar.gz

export SCHEME_INDENT_FILE=""

cat /tmp/chibi-scheme-0.5.3/lib/chibi/repl.scm | \
wc -l

cat /tmp/chibi-scheme-0.5.3/lib/chibi/repl.scm | \
time ../bin/scheme-indent >/dev/null 

(
  find /tmp/chibi-scheme-0.5.3 -name "*.sld" 
  find /tmp/chibi-scheme-0.5.3 -name "*.scm" 
) | xargs cat | \
wc -l


(
  find /tmp/chibi-scheme-0.5.3 -name "*.sld" 
  find /tmp/chibi-scheme-0.5.3 -name "*.scm" 
) | xargs cat | \
time ../bin/scheme-indent >/dev/null

rm -rf /tmp/chibi-scheme-0.5.3
